var express = require('express');
var router = express.Router();
var news=require("../controllers/control_news");

/* GET users listing. */
router.post('/create',news.news_create);//创建
router.put('/update/:id',news.news_update);//修改数据
router.delete('/removes',news.news_removes);//删除多个
router.delete('/delete/:id',news.news_delete);//删除指定
router.get('/list/:id',news.news_list_id);//获取指定
router.post('/list',news.news_list);//获取所有

router.post('/lm',news.news_lm);//获取所有---没有限制

module.exports = router;
